<template>
  <div>
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="router.go(-1)"
    />
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
import { defineProps } from 'vue';
const props =defineProps<{
  title: String
}>()
const router = useRouter();
</script>

<style scoped lang="scss">
:deep  .van-nav-bar{
  background-color: #e93323;
  position: fixed;
  left: 0;
  top:0;
  width: 100%;
  z-index: 10;
  .van-nav-bar__title,.van-nav-bar__arrow,.van-nav-bar__text{
    color: #fff;
  }
  
}
</style>